require 'rubygems'

namespace :stat do  
  desc "stat"
  
  task :reset => :environment do
    # user's settings_count
    User.all.each do |user|
      user.reset_user_tool_settings_count!
    end
    # tool's settings_count
    Tool.all.each do |tool|
      tool.reset_user_tool_settings_count!
    end
  end
end